package 二分法;

public class searchRange34 {

    public int[] searchRange(int[] nums, int target) {
        StringBuilder sb = new StringBuilder();
        for (int i : nums) {
            sb.append(i);
        }
        return new int[]{sb.indexOf(String.valueOf(target)), sb.lastIndexOf(String.valueOf(target))};
    }

}
